<?php
use \blog\libs\BHtml;
use \blog\libs\option;
use \blog\libs\BMeta;
if (!class_exists('Sy')) {
	exit;
}
$homeurl = Sy::createUrl();
?>
	<nav>
		<div class="nav-wrapper">
			<a href="<?=$homeurl?>" class="brand-logo"><?=option::get('sitename')?></a>
			<ul id="nav-mobile" class="right">
				<?php
				$m = BMeta::getList(['type' => 1]);
				while ($one = $m->next()) {
					echo '<li';
					if ($one->id == $tid) {
						echo ' class="active"';
					}
					echo '><a href="' , Sy::createUrl(['article/list', 'type' => 'id', 'val' => $one->id, 'page' => 1]), '">';
					$one->title();
					echo '</a></li>';
				}
				?>
			</ul>
		</div>
	</nav>